<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath %>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>农资与农产品全程供应链物流平台-资源调度</title>
<meta name="kewywords" content="农资与农产品全程供应链物流平台"/>
<meta name="description" content="农资与农产品全程供应链物流平台"/>
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js/LocalList.js"></script>	
<script type="text/javascript" src="js/dialog/lhgdialog.js?skin=default"></script>
<script type="text/javascript">
function dialog(id){
$.dialog({
								height:250,
								width:519,
								lock:true,
								max: false,
								min: false,
								content : 'url:transport/gotoHaulway?id='+id,
								title : "添加运输路线",
								cancelVal : '关闭',
								cancel : true,
								ok:function(){
									window.location.href="transport/addPassTo?startAddres="+$("#addre1").val()+"&passToAddres="+$("#addre2").val()+"&destination="+$("#addre3").val()+"&id="+$("#carId").val();
								}
	});

}


</script>
</head>
<body>
<%@include file="top.jsp" %>
 <input type="hidden" id="addre1" />
 <input type="hidden" id="addre2" />
 <input type="hidden" id="addre3" />
 <input type="hidden" id="carId" />
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="187" height="37" bgcolor="#e0e0e0" class="brt bbt">
    	<div class="topleft fl">系统菜单栏</div>
    </td>
    <td bgcolor="#e7e7e7" class=" bbt">
    	<div class="topleft fl">您现在的位置：首页&nbsp;>&nbsp;<span>资源调度</span></div>
    </td>
  </tr>
  <tr>
    <td width="187" height="100%" valign="top" bgcolor="#FFFFFF" class="brt">
    	<div class="left_bk"> 
           <div class="menu2">
         <%@include file="transport_left.jsp" %>
        </div>
        </div></td>
    <td align="left" valign="top" bgcolor="#FFFFFF"><div class="content">
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="38" style="background:url(images/zz_tit.jpg) left top repeat-x;"><div class="tt_back fl">资源调度</div><div class="fr"><img src="images/tit_right.jpg" alt="" width="103" height="38" /></div></td>
        </tr>
        <tr>
          <td class="borders btn">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
  
  <tr>
    <td height="237" align="center" valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr align="left">
        <td height="10"></td>
      </tr>
      <tr>
      	<td>
      		<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#e3e3e3" >
			<tr class="captit">
			<td width="10%" align="center"  valign="middle">车牌号码</td>
			<td width="10%" align="center"  valign="middle">车辆编号</td>
			<td width="10%" align="center"  valign="middle">车辆类型</td>
			<td width="10%" align="center"  valign="middle">车辆运输证</td>
			<td width="60%" align="center"  valign="middle"></td>
			</tr>
			</table>
      	</td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#e3e3e3">
        	
          <tr class="captitle">
            <td height="31" colspan="10"  align="left"  valign="middle" style="padding-left: 20px;font-weight: bold;">
                      闲置车辆
            </td>
            </tr>
            <s:iterator value="vehicleinfo" var="obj">
            <s:if test="#obj.state == '空闲'">
          <tr height="26" bgcolor="#efefef">
            <td width="10%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.licenseplateno }</td>
             <td width="10%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.vehicleno }</td>
            <td width="10%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.vehicletype }</td>
            <td width="10%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.roadtransportno }</td>
            <td width="60%" height="26" align="center" valign="middle" bgcolor="#FFFFFF"><a href="javascript:dialog('${obj.vehicleno }');" style="color:#3f729d; ">添加运输</a>
            &nbsp;&nbsp;
            <a href="transport/modifyVehicleState?id=${obj.vehicleno }&st=维修" style="color:#3f729d; ">进行维修</a></td>
          </tr>
          </s:if>
          </s:iterator>
           <tr class="captitle">
            <td height="31" align="left"  colspan="10"  valign="middle" style="padding-left: 20px;font-weight: bold;">
                     正在维修车辆
            </td>
            </tr>
          <s:iterator value="vehicleinfo" var="obj">
            <s:if test="#obj.state == '维修'">
          <tr height="26" bgcolor="#efefef">
            <td width="10%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.licenseplateno }</td>
             <td width="10%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.vehicleno }</td>
            <td width="10%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.vehicletype }</td>
            <td width="10%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.roadtransportno }</td>
            <td width="60%" height="26" align="center" valign="middle" bgcolor="#FFFFFF"><a href="transport/modifyVehicleState?id=${obj.vehicleno }&st=空闲" style="color:#3f729d; ">已维修完毕</a></td>
          </tr>
          </s:if>
          </s:iterator>
          <tr class="captitle">
            <td height="31" align="left"  colspan="10"  valign="middle" style="padding-left: 20px;font-weight: bold;">
                     正在运输车辆
            </td>
            </tr>
           <s:iterator value="sches" var="obj">
          <tr height="26" bgcolor="#efefef">
            <td width="10%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.licensePlateNo }</td>
             <td width="10%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.vehicleno }</td>
            <td width="10%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.vehicleType }</td>
            <td width="10%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.RoadTransportNo }</td>
            <td width="60%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.start_to }-->${obj.pass_to }-->${destination }&nbsp;&nbsp;&nbsp;<a href="transport/modifyVehicleState?schedId=${obj.id }&st=空闲&id=${obj.vehicleno }" style="color:#3f729d; ">运输完毕</a></td>
          </tr>
          </s:iterator>
        </table></td>
      </tr>
    </table>
</td>
        </tr>
      </table>
    </div></td>
  </tr>
</table>
</div>
</td>
</tr>
</table>
<div class="bottom">版权所有：安徽朗坤物联网</div>
</body>
</html>